#include <iostream>
#include <string>
#include <unordered_map>
using namespace std;
 
int main()
{
	string strA;
	string strB;
	unordered_map<char, int> mapA;
	unordered_map<char, int> mapB;
	while (cin >> strA >> strB)
	{
		mapA.clear();
		mapB.clear();
		// 统计次数
		for (auto& ch : strA)
		{
            mapA[ch]++;
        }
		for (auto& ch : strB)
		{
            mapB[ch]++;
        }
		bool ret = true;
		// 遍历字符串B
		for (auto& ch : strB)
		{
			if (mapA[ch] < mapB[ch])
			{
				ret = false;
				break;
			}
		}
		if (ret)
			cout << "Yes" << endl;
		else
			cout << "No" << endl;
	}
	return 0;
}